home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / btrieve / btool100.exe / INCLUDE.EXE / BTR_STRU.H < prev    next >
Text File  |  1990-08-06  |  1KB  |  66 lines

  1. /*
  2.     btr_stru.h
  3.  
  4.     Copyright (c) 1990, by Jeffrey K Regan
  5.     ALL RIGHTS RESERVED.
  6.  
  7.     Revision History:
  8.     -----------------
  9. */
  10.  
  11. /******************************************************/
  12. /* Useful structure typedefs for use with BTRIEVE     */
  13. /******************************************************/
  14. #pragma pack (1)
  15. typedef struct
  16.    {
  17.    int    rec_len;
  18.    int    page_size;
  19.    int    num_indices;
  20.    long    res1;
  21.    int    file_flags;
  22.    int    res2;
  23.    int    pre_allocation;
  24.    } btr_file_specs;
  25.  
  26. typedef struct
  27.     {
  28.     int    key_pos;
  29.     int    key_len;
  30.     int    key_flags;
  31.     long    res1;
  32.     char    ex_key_type;
  33.     char    null_value;
  34.     long    res2;
  35.     } btr_key_specs;
  36.  
  37. typedef struct
  38.     {
  39.     btr_file_specs    fs;
  40.     btr_key_specs    ks [24];
  41.     char    alt_buf [265];
  42.     } btr_stat_struct;
  43.  
  44. typedef struct
  45.     {
  46.     int    version_number;
  47.     int    revision_number;
  48.     char    type_char;
  49.     } ver_struct;
  50.  
  51. typedef struct
  52.     {                         /***************************/
  53.     char        pb [128];        /* Position Block           */
  54.     char        *db;             /* Data Buffer Pointer      */
  55.     char        *kb;             /* Key Buffer Pointer       */
  56.     int        rl;              /* Current Record Length    */
  57.     int        arl;             /* Actual Record Length     */
  58.     int        kn;              /* Current Key Number       */
  59.     int        pr;                /* Last Return Code            */
  60.     } btr_fcb;                  /***************************/
  61.  
  62. #pragma pack ()
  63. /*********************/
  64. /* End of definition */
  65. /*********************/
  66.